//
//  AddressBook.h
//  OC_JiangMingjun
//
//  Created by apple on 16/4/29.
//  Copyright © 2016年 apple. All rights reserved.
//

#import <Foundation/Foundation.h>

@class Person;

@interface AddressBook : NSObject



#pragma mark - Insert

- (BOOL)addPerson:(Person *)aperson;


#pragma mark - Select

- (Person *)findPersonWithPhoneNum:(NSString *)aphoneNum;

- (NSArray *)findPersonsWithSex:(NSString *)aSex;

- (void)showAll;


#pragma mark - Update


-(BOOL)changePersonWithName:(NSString *)name
                   phoneNum:(NSString *)aNum
                        sex:(NSString *)aSex
                        age:(NSInteger) aAge;




#pragma mark - Delete

- (BOOL)deletePersonWithName:(NSString*)aPersonName;

- (BOOL)deleteGroup:(NSString *)aGroupName;


@end
